*                        FUNCTION DEFINITIONS LIST
*
*                              Version: 0.6B
*
*                          "Games Master System"
*
##base _GMSBase
##bias 30
##public
*----------------------------------------
* Master.GPI                             
*----------------------------------------
InitGPI(ID)(d0)
RemoveGPI(ID)(d0)
SetUserPrefs(Name)(a0)
CloseGMS()()
InitTags(Structure,TagList)(a0/a1)
FindGMSTask()()
GMSForbid()()
GMSPermit()()
GetTaskInfo(Task)(a0)
*
InitJoyPorts()()
ReadMouse(PortName)(d0)
ReadJoyPort(PortName,ReturnType)(d0/d1)
ReadJoyStick(PortName)(d0)
ReadJoyPad(PortName)(d0)
ReadSegaPad(PortName)(d0)
ReadAnalogue(PortName)(d0)
ReadKey(KeyStruct)(a1)
WaitLMB()()
masterPrivate00()()
WaitTime(MicroSeconds)(d0)
*
FastRandom(range)(d1)
SlowRandom(range)(d1)
WriteDec(Value,AmtDigits,Destination)(d0/d1/a0)
WriteHex(Value,AmtDigits,Destination)(d0/d1/a0)
*
AddInputHandler()()
RemInputHandler()()
AddInterrupt(Interrupt,IntNum,IntPri)(a0/d0/d1)
RemInterrupt(IntBase)(a0)
AllocMemBlock(Size,MemType)(d0/d1)
FreeMemBlock(MemBlock)(d0)
AddTrack(Resource,Data,Routine)(d0/d3/a0)
DeleteTrack(Key)(d1)
*
OpenFile(Filename,Flags)(a0/d0)
ReadFile(File,Buffer,Length)(a0/a1/d0)
WriteFile(File,Buffer,Length)(a0/a1/d0)
CloseFile(File)(a0)
*
SmartLoad(FileName,Destination,MemType)(a0/a1/d0)
QuickLoad(FileName,Destination,MemType)(a0/a1/d0)
SmartUnpack(Source,Destination,Password,MemType)(a0/a1/d0/d1)
SmartSave(FileName,Source,SrcLength)(a0/a1/d0)
*
GetPicInfo(Source,Picture)(a0/a1)
UnpackPic(Source,Picture)(a0/a1)
LoadPic(Picture)(a1)
LoadPicFile(Filename,Options)(a1,d0)
FreePic(Picture)(a1)
*
InitDestruct(Code,Stack)(a0/a1)
SelfDestruct()()
Armageddon(Key)(d0)
FingerOfDeath(Task)(d0)
*
GetPicture()()
GetStructure(ID)(d0)
FreeStructure(Structure)(a0)
*
LoadObjectFile(FileName)(a0)
GetObject(ObjectBase,Name)(a0/a1)
GetObjectList(ObjectBase,ObjectList)(a0/a1)
FreeObjectFile(ObjectBase)(a0)
GrabObjectList(ObjectBase)(a0)
CopyObject(ObjectBase,Name)(a0/a1)
*
DebugMessage(DebugType,DebugText)(d7/a5)
ErrorMessage(ErrorCode)(d0)
StepBack()()
DebugActive()()
DebugInactive()()
Awaken(Identifier)(a0)
##private
masterPrivate01()()
masterPrivate02()()
masterPrivate03()()
masterPrivate04()()
masterPrivate05()()
masterPrivate06()()
masterPrivate07()()
masterPrivate08()()
masterPrivate09()()
masterPrivate10()()
masterPrivate11()()
masterPrivate12()()
masterPrivate13()()
masterPrivate14()()
masterPrivate15()()
masterPrivate16()()
masterPrivate17()()
masterPrivate18()()
masterPrivate19()()
masterPrivate20()()
##public
*----------------------------------------
* Screens.GPI                            
*----------------------------------------
AllocVideoMem(Size)(d0)
GetScreen()()
AddScreen(GameScreen)(a0)
DeleteScreen(GameScreen)(a0)
ShowScreen(GameScreen)(a0)
HideScreen(GameScreen)(a0)
Switch()()
AutoSwitch()()
SwapBuffers(GameScreen)(a0)
WaitVBL()()
scrEmpty()()
WaitRVBL()()
WaitRastLine(LinePosition)(d0)
RefreshScreen(GameScreen)(a0)
RemakeScreen(GameScreen)(a0)
MovePicture(GameScreen)(a0)
ResetPicture(GameScreen)(a0)
*
UpdatePalette(GameScreen)(a0)
PaletteMorph(GameScreen,FadeState,Speed,StartColour,AmtColours,SrcPalette,DestPalette)(a0/d0/d1/d3/d4/a1/a2)
PaletteToColour(GameScreen,FadeState,Speed,StartColour,AmtColours,Palette,Colour)(a0/d0/d1/d3/d4/a1/d2)
ColourMorph(GameScreen,FadeState,Speed,StartColour,AmtColours,SrcColour,DestColour)(a0/d0/d1/d3/d4/d2/d5)
ColourToPalette(GameScreen,FadeState,Speed,StartColour,AmtColours,Palette,Colour)(a0/d0/d1/d3/d4/a1/d2)
ChangeColours(GameScreen,Colours,StartColour,AmtColours)(a0/a1/d0/d1)
BlankColours(GameScreen)(a0)
*
InitRasterlist(GameScreen)(a0)
UpdateRasterlist(GameScreen)(a0)
UpdateRasterCommand(GameScreen,Command)(a0/a2)
UpdateRasterCommands(GameScreen,Command,Amount)(a0/a2/d0)
UpdateRasterLines(GameScreen)(a0)
RemoveRasterlist(GameScreen)(a0)
HideRasterlist(GameScreen)(a0)
ShowRasterlist(GameScreen)(a0)
*
InitSprite(GameScreen,Sprite)(a0/a1)
UpdateSprite(GameScreen,Sprite)(a0/a1)
MoveSprite(GameScreen,Sprite)(a0/a1)
HideSprite(GameScreen,SpriteNum)(a0/d0)
UpdateSpriteList(SpriteList)(a0)
HideSpriteList(SpriteList)(a0)
RemoveAllSprites(GameScreen)(a0)
ReturnAllSprites(GameScreen)(a0)
FreeSprite(Sprite)(a1)
*
UpdateColour(GameScreen,Colour,Value)(a0/d0/d1)
BlankOn()()
BlankOff()()
MoveToFront(GameScreen)(a0)
MoveToBack(GameScreen)(a0)
TakeDisplay(GameScreen)(a0)
ReturnDisplay()()
FreeVideoMem(MemBlock)(d0)
GetScrType()()
##private
scrPrivate02()()
scrPrivate03()()
scrPrivate04()()
scrPrivate05()()
scrPrivate06()()
scrPrivate07()()
scrPrivate08()()
scrPrivate09()()
scrPrivate10()()
scrPrivate11()()
scrPrivate12()()
scrPrivate13()()
scrPrivate14()()
scrPrivate15()()
##public
*----------------------------------------
* Blitter.GPI                            
*----------------------------------------
AllocBlitMem(Size)(d0)
GetBob()()
GetMBob()()
AllocBlitter()()
FreeBlitter()()
InitBob(GameScreen,Bob)(a0/a1)
FreeBob(Bob)(a1)
DrawBob(GameScreen,Bob,Buffer,Restorelist)(a0/a1/d0/a2)
DrawBobList(GameScreen,BobList,Buffer,Restorelist)(a0/a1/d0/a2)
ClearBob(GameScreen,Bob,Buffer)(a0/a1/d0)
DrawLine(GameScreen,Buffer,SX,SY,EX,EY,Colour)(a0/d0/d1/d2/d3/d4/d5)
DrawUCLine(GameScreen,Buffer,SX,SY,EX,EY,Colour)(a0/d0/d1/d2/d3/d4/d5)
*
CopyBuffer(GameScreen,SrcBuffer,DestBuffer)(a0/d0/d1)
ClrScreen(GameScreen,Buffer)(a0/d0) 
ClrArea(GameScreen,SX,SY,EX,EY)(a0/d0/d1/d2/d3)
*
InitRestore(AmtBuffers,Entries)(d0/d1)
FreeRestore(RestoreList)(d0)
ResetRestore(RestoreList)(a1)
Restore(GameScreen,RestoreList)(a0/a1)
CleanUpRestore(GameScreen,RestoreList)(a0/a1)
*
InitMap(GameScreen,Map)(a0/a1)
DrawMap(GameScreen,Map)(a0/a1)
DrawMapHRow(GameScreen,Map,XCoord,YCoord)(a0/a1/d0/d1)
DrawMapVRow(GameScreen,Map,XCoord,YCoord)(a0/a1/d0/d1)
FreeMap(Map)(a1)
DrawMapTile(GameScreen,Map,XCoord,YCoord)(a0/a1/d0/d1)
*
DrawPixel(GameScreen,Buffer,XCoord,YCoord,Colour)(a0/d0/d1/d2/d3)
DrawPixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
DrawUCPixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
DrawUCPixel(GameScreen,Buffer,XCoord,YCoord,Colour)(a0/d0/d1/d2/d3)
ReadPixel(GameScreen,Buffer,XCoord,YCoord)(a0/d0/d1/d2)
ReadPixelList(GameScreen,Buffer,PixelList)(a0/d0/a1)
FreeBlitMem(MemBlock)(d0)
##private
blitPrivate01()()
blitPrivate02()()
blitPrivate03()()
blitPrivate04()()
blitPrivate05()()
blitPrivate06()()
blitPrivate07()()
blitPrivate08()()
blitPrivate09()()
blitPrivate10()()
blitPrivate11()()
blitPrivate12()()
blitPrivate13()()
blitPrivate14()()
blitPrivate15()()
blitPrivate16()()
blitPrivate17()()
blitPrivate18()()
blitPrivate19()()
blitPrivate20()()
blitPrivate21()()
blitPrivate22()()
blitPrivate23()()
blitPrivate24()()
blitPrivate25()()
blitPrivate26()()
blitPrivate27()()
blitPrivate28()()
##public
*----------------------------------------
* Sound.GPI                              
*----------------------------------------
AllocAudio()()
FreeAudio()()
InitSound(Sound)(a0)
FreeSound(Sound)(a0)
CheckChannel(ChannelName)(d0)
PlaySound(Sound)(a0)
PlaySoundDAC1(Sound)(a0)
PlaySoundDAC2(Sound)(a0)
PlaySoundDAC3(Sound)(a0)
PlaySoundDAC4(Sound)(a0)
PlaySoundPri(Sound)(a0)
PlaySoundPriDAC1(Sound)(a0)
PlaySoundPriDAC2(Sound)(a0)
PlaySoundPriDAC3(Sound)(a0)
PlaySoundPriDAC4(Sound)(a0)
SetVolume(Channel,Volume)(d0/d1)
FadeVolume(Channel)(d0)
StopSound(Sound)(a0)
StopChannel(Channel)(d0)
InitMusic()()
PlayMusic()()
StopMusic()()
AllocSoundMem(Size)(d0)
GetSound()()
FreeSoundMem(MemBlock)(d0)
##end
